var app = [
    "dashboard",
    "knowledge",
    "buysubs",
    "mysubs",
    "order",
    "invite",
    "profile",
    "flow",
]
for (let string of app) {
    let filePath = string.toUpperCase() + ".ts";
    console.log(filePath)
    let sd = ` 

import {RouteRecordRaw} from "vue-router";
import ${string.toUpperCase()} from "@/page/${string.toUpperCase()}.vue";
const ${string}: RouteRecordRaw = {
    path: '/${string}',
    component: ${string.toUpperCase()},
    meta: {
        icon: 'p-${string}',
        title: 'menu.${string}',
    }
};
export default ${string};
`
    console.log(sd)
    await Bun.write(string + ".ts", sd);
}
